<!--Generate by Kevin's CodeBuilder 2022-01-27 15:22:39-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title></title>
    <head th:replace="source::header">
    </head>
    <link type="text/css" rel="stylesheet" class="edit_source"  th:href="@{'/static/theme/default/editor.css?v='+${jsversion}}">
    <script type="application/javascript" th:src="@{/static/test/org.json}"></script>
    <script type="application/javascript" class="edit_source" th:src="@{/static/lib/vue.min.js}"></script>
    <script type="application/javascript" th:src="@{/static/javascript/prpForm-2.0.0.js}"></script>
    <script type="application/javascript" th:src="@{/static/javascript/editor-2.0.0.js}"></script>
</head>
<body>

<style>
    #p_title{
        top:0;
        left:0;
        position: absolute;
        width: 100%;
        height:35px;
    }
    #editor-wrap{
        top:0;
        left:0;
        position: absolute;
        width: 100%;
        height: 100%;
        padding-bottom: 1px;
    }
</style>
<div style="padding:20px 14px;height:100%;" class="k_box_size">
    <div id="editor-wrap" class="k_box_size">
        <div id="editor"></div>
    </div>
<!--    <div id="p_title">-->
<!--        <p>个人首页，代办，工作流</p>-->
<!--    </div>-->
</div>

<script>
    (function(){
        console.log("create editor..........");
        var edtIns = new $B.Keditor("editor", {
            fileUpload:{
                timeout: 300, //超时时间 秒
                url: 'http://127.0.0.1:8888/test/upload',
                immediate: true, //选择文件后是否立即自动上传，即不用用户点击提交按钮就上传
                onSelected: function(file,fileName){ //选择文件后的事件请返回true 以便通过验证
                    console.log(fileName);
                    return true;
                },
                success: function(mesage, data, res){ //成功时候的回调
                    console.log("success "+mesage);
                },
                onDelected: function(res){//删除回调,function(res){ }
                    console.log("delete "+res);
                },
                setParams: function(){ //设置参数 return {}
                    return undefined;
                },
                error: function (res,err) { //错误回调
                    console.log("error "+res,err);
                }
            },
            imgUpload:{
                timeout: 300, //超时时间 秒
                url: 'http://127.0.0.1:8888/test/uploadImg',
                immediate: true, //选择文件后是否立即自动上传，即不用用户点击提交按钮就上传
                onSelected: function(file,fileName){ //选择文件后的事件请返回true 以便通过验证
                    console.log(fileName);
                    return true;
                },
                success: function(mesage, data, res){ //成功时候的回调
                    console.log("success "+mesage);
                },
                onDelected: function(res){//删除回调,function(res){ }
                    console.log("delete "+res);
                },
                setParams: function(){ //设置参数 return {}
                    return undefined;
                },
                error: function (res,err) { //错误回调
                    console.log("error "+res,err);
                }
            }
        });
        edtIns.focus();
    })();
</script>
</body>
</html>
